
import 'dart:math';

import 'package:flutter/material.dart';

class ZXColors {

  /// 透明度
  //100% — FF
  // 95% — F2
  // 90% — E6
  // 85% — D9
  // 80% — CC
  // 75% — BF
  // 70% — B3
  // 65% — A6
  // 60% — 99
  // 55% — 8C
  // 50% — 80
  // 45% — 73
  // 40% — 66
  // 35% — 59
  // 30% — 4D
  // 25% — 40
  // 20% — 33
  // 15% — 26
  // 10% — 1A
  // 5% — 0D
  // 0% — 00

  ///获取随机颜色
  static Color getRandomColor() {
    return Color.fromARGB(
      255,
      Random.secure().nextInt(255),
      Random.secure().nextInt(255),
      Random.secure().nextInt(255),
    );
  }

  // 背景颜色
  static const Color bg_1 = Color(0xFFFBF9F7);
  static const Color bg_2 = Color(0xFFF8F8F7);
  static const Color bg_protect_eye = Color(0x1A00A870);
  static const Color bg_bt_red = Color(0xFFFB1B1B);

  // 标题标签背景颜色
  static const Color bg_course_lable = Color(0xFFFFCE85);
  static const Color bg_status_lable_green = Color(0x3300A870);
  static const Color bg_status_lable_grey = Color(0x338B8B8B);
  static const Color bg_status_lable_blue = Color(0x330052D9);
  static const Color bg_kejie_circle_index_1 = Color(0xFFE6EDF7);
  static const Color bg_kejie_circle_index_2 = Color(0xFF4E99FF);
  static const Color bg_kejie_line = Color(0xFFE6EDF7);

  // 进度条颜色
  static const Color progress_red = Color(0x99FB1B1B);
  static const Color progress_grey = Color(0xFFE9E9E9);

  // 文字颜色
  static const Color text_black_25 = Color(0x40000000);
  static const Color text_black_35 = Color(0x59000000);
  static const Color text_black_65 = Color(0xA6000000);
  static const Color text_black_85 = Color(0xD9000000);
  static const Color text_wei_jie_ke = Color(0xFF00A870);
  static const Color text_yi_jie_ke = Color(0xFF8B8B8B);
  static const Color text_course_section_title = Color(0xFF2F2F2F);
  static const Color text_course_section_content = Color(0xFF717177);
  static const Color text_set_content = Color(0xFF999999);
  static const Color text_about_contact_content = Color(0xFF0656EF);
  static const Color text_status_lable_blue = Color(0xFF0052D9);
  static const Color text_status_lable_green = Color(0xFF00A870);
  static const Color text_status_lable_grey = Color(0xFF8B8B8B);

  //红色字体
  static const Color text_red = Color(0xFFFB1B1B);
  static const Color text_red_50 = Color(0x80FB1B1B);
  // 分割线颜色
  static const Color divider_line_10 = Color(0x10000000);
  static const Color divider_line_F1 = Color(0xFFF1F1F1);

  // item阴影颜色
  static const Color shadow_grey_10 = Color(0x10000000);
  static const Color shodow_greg_5 = Color(0x0D000000);

  // static const Color transparent = Colors.transparent;
}

